@import './base.css';

/* 全局容器样式 */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 电脑端优化的网格布局 */
.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.desktop-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 40px 0;
}

.desktop-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.desktop-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 40px 0;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .page-container {
    max-width: 100%;
    padding: 0 25px;
  }
  
  .desktop-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .desktop-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0 20px;
  }
  
  .content-wrapper {
    padding: 0 15px;
  }
  
  .desktop-grid,
  .desktop-grid-2,
  .desktop-grid-3,
  .desktop-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
  }
}
